Re: [GENERAL] Fast join

Поиск
Список
Период
Сортировка
От Herouth Maoz
Тема Re: [GENERAL] Fast join
Дата
Msg-id l03130302b39e9bdfbcf8@[147.233.159.109]
обсуждение исходный текст
Ответ на Re: [GENERAL] Fast join  (Leon <leon@udmnet.ru>)
Список pgsql-general
At 18:33 +0300 on 29/06/1999, Leon wrote:


> adb=>  EXPLAIN  SELECT COUNT(*) FROM atable WHERE atable.cfield =
>btable.cfield
> AND atable.afield<10;
...
>
> adb=>  EXPLAIN  SELECT COUNT(*) FROM atable WHERE atable.cfield =
>btable.cfield
> AND atable.afield>100;

Hey, shouldn't these be:

SELECT COUNT(*)
FROM atable, btable  <----- Note this!
WHERE atable.cfield = btable.cfield
AND ....

I'm not sure that when the other table is implicit, the optimizer checks
the statistics of the btable on time.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



В списке pgsql-general по дате отправления:

Предыдущее
От: Leon
Дата:
Сообщение: Re: [GENERAL] Fast join
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] Fast join